import { createStore } from "vuex";
import Mycart from "./Mycart";
import Myorder from "./Myorder";
import Userinformation from './Userinformation'
// 导入vuex状态持久化插件
import VuexPersistence from 'vuex-persist'
const vuexLocal = new VuexPersistence({
    storage:window.localStorage
})
const store =createStore({
    state:{
        isLoading:false
    },
    mutations:{
    },
    modules:{
        Mycart,Myorder,Userinformation
    },
    plugins:[vuexLocal.plugin]
})
export default store